package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.AssesRule;

import java.util.List;

/**
 * 考核规则Mapper接口
 *
 * @author ruoyi
 * @date 2024-04-22
 */
public interface AssesRuleMapper
{
    /**
     * 查询考核规则
     *
     * @param id 考核规则主键
     * @return 考核规则
     */
    public AssesRule selectAssesRuleById(Long id);

    public AssesRule selectAssesRuleByAssesRule(AssesRule assesRule);

    /**
     * 查询考核规则
     *
     * @param effectiveTerm 有效年限
     * @return 考核规则
     */
    public AssesRule selectAssesRuleByEffectiveTerm(String effectiveTerm);

    /**
     * 查询考核规则列表
     *
     * @param assesRule 考核规则
     * @return 考核规则集合
     */
    public List<AssesRule> selectAssesRuleList(AssesRule assesRule);

    /**
     * 新增考核规则
     *
     * @param assesRule 考核规则
     * @return 结果
     */
    public int insertAssesRule(AssesRule assesRule);

    /**
     * 修改考核规则
     *
     * @param assesRule 考核规则
     * @return 结果
     */
    public int updateAssesRule(AssesRule assesRule);

    /**
     * 删除考核规则
     *
     * @param id 考核规则主键
     * @return 结果
     */
    public int deleteAssesRuleById(Long id);

}
